-- GENERATED SPELL FOR [Tamed Amani Crocolisk] --


function spell0_24138(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(43353,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24138', 8000, 1)
end

function spell1_24138(pUnit, Event) --@Tail Swipe,n/a--
pUnit:FullCastSpellOnTarget(43352,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24138', 586, 1)
end

function Sorts_24138(pUnit, Event)
local choix_sorts_24138 = math.random(0, 1)
if choix_sorts_24138 == 0 then
pUnit:RegisterEvent('spell0_24138', 1, 1)
end
if choix_sorts_24138 == 1 then
pUnit:RegisterEvent('spell1_24138', 1, 1)
end
end

function mob24138_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24138', math.random(1500, 3000), 1)
end

function mob24138_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24138_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24138_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24138, 1, 'mob24138_Action')
RegisterUnitEvent(24138, 2, 'mob24138_Leave')
RegisterUnitEvent(24138, 3, 'mob24138_Kill')
RegisterUnitEvent(24138, 4, 'mob24138_Die')
